package com.example.demo02.utils;

import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
@Component
public class ParamUtil {
    private static Boolean online;

    @PostConstruct
    public void initParameters(){
        if(online==null){
            online=true;
        }
    }

    public static Boolean getOnline() {
        return online;
    }

    public static void setOnline(Boolean online) {
        ParamUtil.online = online;
    }
}
